// import req from "@/apis/http.js";
import axios from "@/apis/https.js";

//登录
export const loginContrllor = params =>
  req("get", "/auth/loginController/loginAction", params);
//密码修改
export const savePasswordContrllor = params =>
  req("get", "/auth/loginController/updatePasswordAction", params);

//添加消息机制
export const addSend = params => {
  return axios({
    url: "/platform/commNotifyMechanism/insert",
    method: "POST",
    data: params
  });
};
//删除消息机制
export const delectSend = params => {
  return axios({
    url: "/platform/commNotifyMechanism/deleteLogistic",
    method: "POST",
    data: params
  });
};
//获取机制消息列表/模糊查询
export const queryListByLike = params => {
  return axios({
    url: "/platform/commNotifyMechanism/queryListByLike",
    method: "GET",
    params: params
  });
};
//获取消息主题列表/模糊查询
export const queryListByLikeTopic = params => {
  return axios({
    url: "/platform/commNotifyTopic/queryListByLike",
    method: "GET",
    params: params
  });
};

//添加消息主题
export const addTopic = params => {
  return axios({
    url: "/platform/commNotifyTopic/insert",
    method: "GET",
    params: params
  });
};
//添加消息主题/系统划分列表
export const queryAllBasemode = params => {
    return axios({
      url: "/platform/mymenuController/queryAllBasemode",
      method: "GET",
      params: params
    });
  };
//   export const queryAllBasemode = params =>
//   req("get", "/platform/mymenuController/queryAllBasemode", params);